<form name="frmAddProduct" id="frmAddProduct" method="post" action="" enctype="multipart/form-data" class="">
    <table cellpadding="0" cellspacing="0" width="100%" class="table-form-post round_border">
        <col width="25%">
        <col width="75%">
        <tbody>
            <tr>
                <td class="td-form-title">
                    Tên sản phẩm
                </td>
                <td>
                    <input type="text" name="product_title" id="product_title" class="w400p" tooltipText="Nhập tên sản phẩm."><span id="product_title_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>
            <tr>
                <td class="td-form-title">
                    Title
                </td>
                <td>
                    <input type="text" name="product_search_title" id="product_search_title" class="w400p" tooltipText="Tiêu đề hiển thị và tìm kiếm. Tối đa 70 ký tự"><span id="product_search_title_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>
            <tr>
                <td class="td-form-title">
                    Keyword
                </td>
                <td>
                    <input type="text" name="product_search_keyword" id="product_search_keyword" class="w400p" tooltipText="Từ khóa tìm kiếm liên quan đến sản phẩm. Tối đa 10 từ khóa, mỗi từ khóa cách nhau bằng dấu phẩy ','."><span id="product_search_keyword_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>
            <tr>
                <td class="td-form-title">
                    Description
                </td>
                <td>
                    <textarea name="product_search_description" id="product_search_description" class="area-description" tooltipText="Nội dung mô tả cho tiêu đề, có chứa tiêu đề. Tối đa 255 ký tự."></textarea><span id="product_search_description_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>
            <tr>
                <td class="td-form-title">
                    Hình ảnh sản phẩm
                </td>
                <td>
                    <input type="file" name="mainImage[]" id="product_main_image" size="34">
                    <span id="product_image_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>
            <tr>
                <td>
                    Các hình ảnh khác
                </td>
                <td>
                    <div id="list_image_item">
                        <div id="item-0">
                            <span><input type="text" class="w250p" name="product_image_title[]" tooltipText="Mô tả về ảnh sản phẩm này."></span>
                            <span><input type="file" name="product_other_image[]" size="20"></span>
                            <span><a class="cpointer" onclick="AdminController.addRowItemCategory('list_image_item', 'list_image_item_hidden');"><img src="/public/images/form/add-icon.png"></a></span>
                            <span style="padding-left: 20px;"><a class="cpointer" onclick="AdminController.removeRowItemCategory(this, 'list_image_item');"><img src="/public/images/form/delete.png"></a></span>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="td-form-title">
                    Phân loại sản phẩm
                </td>
                <td>
                    <select name="product_type_id" id="product_type_id" class="w200p">
                        <option value="">Chọn loại sản phẩm</option>
                        <?php foreach ($aryProductType as $key => $value) {
                        ?>
                            <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
                        <?php } ?>
                    </select>
                    <span id="product_type_id_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    Danh mục sản phẩm
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <div class="list-item-category">
                        <div id="cat_for_add_1">
                            <select class="w160p" id="selectcatforadd1" size="12" onclick="AdminController.checkExistProductSubCategory('product', this.value, 1);AdminController.selectProductMakerOnClick(this.value);AdminController.selectProductSpecs(this.value);"></select>
                        </div>
                        <div id="cat_for_add_2" class="hide">
                            <select class="w160p" id="selectcatforadd2" size="12" onclick="AdminController.checkExistProductSubCategory('product', this.value, 2);AdminController.selectProductMakerOnClick(this.value);AdminController.selectProductSpecs(this.value);">

                            </select>
                        </div>
                        <div id="cat_for_add_3" class="hide">
                            <select class="w160p" id="selectcatforadd3" size="12" onclick="AdminController.checkExistProductSubCategory('product', this.value, 3);AdminController.selectProductMakerOnClick(this.value);AdminController.selectProductSpecs(this.value);">

                            </select>
                        </div>
                        <div id="cat_for_add_4" class="hide">
                            <select class="w160p" id="selectcatforadd4" size="12" onclick="AdminController.checkExistProductSubCategory('product', this.value, 4);AdminController.selectProductMakerOnClick(this.value);AdminController.selectProductSpecs(this.value);">

                            </select>
                        </div>
                        <div id="cat_for_add_5" class="hide">
                            <select class="w160p" id="selectcatforadd5" size="12" onclick="AdminController.checkExistProductSubCategory('product', this.value, 5);AdminController.selectProductMakerOnClick(this.value);AdminController.selectProductSpecs(this.value);">

                            </select>
                        </div>
                    </div>
                    <span id="product_category_id_error" class="validate_error" style="display: none;"></span>
                </td>
            </tr>


            <tr>
                <td colspan="2" class="item-cat-header">
                    Mô tả cơ bản về sản phẩm
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <textarea class="product_highlight" id="product_highlight" name="product_highlight"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div id="product_highlight_error" class="validate_error" style="display: none;"></div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div id="product_specs"></div>
                </td>
            </tr>
            <tr style="height: 10px;"></tr>
            <tr>
                <td rowspan="2" valign="bottom">
                    <div class="item-cat-header">Mô tả chi tiết</div>
                </td>
                <td align="right">
                    <div id="fileQueue" class="area-input-image"></div>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <input type="file" name="uploadify" id="uploadify" />
                    <a href="javascript:$('#uploadify').uploadifyUpload();"><img src="/public/images/form/upload.png" border="0" /></a>
                    <a href="javascript:jQuery('#uploadify').uploadifyClearQueue()"><img src="/public/images/form/huybo.png" border="0"/></a>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <textarea name="product_content" id="product_content" rows="10" cols="40" class="tinymce"></textarea>
                </td>

            </tr>
            <tr>
                <td colspan="2" align="center">
                    <div class="input_field no_margin_bottom">
                        <input type="hidden" name="product_id" id="product_id" value="">
                        <input type="hidden" name="product_category_id_hidden" id="product_category_id_hidden" value="">
                        <input type="hidden" name="product_cat_info_is_change" id="product_cat_info_is_change" value="">
                        <input type="button" name="submitMemberPost" id="submitMemberPost" class="cpointer submit">
                        <input type="button" name="cancelEditor" id="cancelEditor" class="cpointer submit" value="Hủy bỏ" onclick="AdminController.hideProductEditor();" >
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</form>
<div id="list_image_item_hidden" style="display: none;">
    <span><input type="text" class="w250p" name="product_image_title[]" tooltipText="Mô tả về ảnh sản phẩm này."></span>
    <span><input type="file" name="product_other_image[]" size="20"></span>
    <span><a class="cpointer" onclick="AdminController.addRowItemCategory('list_image_item', 'list_image_item_hidden');"><img src="/public/images/form/add-icon.png"></a></span>
    <span style="padding-left: 20px;"><a class="cpointer" onclick="AdminController.removeRowItemCategory(this, 'list_image_item');"><img src="/public/images/form/delete.png"></a></span>
</div>